# 定义列表
from itertools import count

data_list = ['Python','Java','Python','PHP']
# 统计python出现的次数
num = data_list.count("Python")
print(num)
# 统计Java出现次数
print(data_list.count("Java"))
print(data_list.count("C++"))